<?php

$file = fopen("credenziali.txt", "r");
$host = fgets($file);
$username = fgets($file);
$password_db = fgets($file);
$host[strlen($host) - 1] = "";
$username[strlen($username) - 1] = "";
$connessione = mysql_connect($host, $username, $password_db);
mysql_select_db("artigian");

?>